import {createRouter, createWebHistory} from 'vue-router'
import Introduce from '@/views/Introduce.vue'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: 'introduce',
            component: Introduce
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('@/views/Login.vue')
        },
        {
          path:'/setup',
          name:'setup',
          component:()=>import('@/views/setup.vue')
        },
        {
            path:'/test',
            name:'test',
            component:()=>import('@/views/test.vue')
        },
        {
            path:'/modify',
            name:'modify',
            component:()=>import('@/views/modify.vue')
        },
        {
            path:'/register',
            name:'register',
            component:()=>import('@/views/register.vue')
        },
        {
            path:'/account',
            name:'account',
            component:()=>import('@/views/account.vue')
        },
        {
            path:'/good',
            name:'good',
            component:()=>import('@/views/good.vue')
        },{
            path:'/addgood',
            name:'addgood',
            component:()=>import('@/views/addgood.vue')
        },
        {
            path:'/modifydish',
            name:'modifydish',
            component:()=>import('@/views/modifydish.vue')
        },
        {
            path:'/neworders',
            name:'neworders',
            component:()=>import('@/views/neworders.vue')
        },
        {
            path:'/orders',
            name:'orders',
            component:()=>import('@/views/orders.vue')
        },
        {
            path:'/examine',
            name:'examine',
            component:()=>import('@/views/examine.vue')
        },
        {
            path:'/OrderStatistics',
            name:'OrderStatistics',
            component:()=>import('@/views/OrderStatistics.vue')
        },
        {
            path:'/statistics',
            name:'statistics',
            component:()=>import('@/views/statistics.vue')
        },
        {
            path:'/finance',
            name:'finance',
            component:()=>import('@/views/finance.vue')
        }
    ]
})

export default router
